package com.zfei.gfb.request;

import com.zfei.gfb.bean.Status;
import com.zfei.gfb.bean.StatusException;
import com.zfei.gfb.util.ObjUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

public class GfbUserLoginRequest {

    @ApiModelProperty(value = "账号（手机号）", required = true)
    private String phone;
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void check(){
        if (ObjUtil.anyNull(phone, password)) {
            throw new StatusException(Status.INVALID_ARGUMENT);
        }
    }
}
